package com.example.springbootdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 银行-操作流水表-2
 * </p>
 *
 * @author 廖老师
 * @since 2023-11-24
 */
@TableName("bank_oprecord")
public class BankOprecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 流水号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 卡号
     */
    private Integer aid;

    /**
     * 操作金额，正数存款，负数取款
     */
    private BigDecimal opmoney;

    /**
     * 交易费
     */
    private BigDecimal charge;

    /**
     * 操作时间, 默认系统当前时间
     */
    private LocalDateTime optime;

    /**
     * 备注: 存款,取款,转账,缴费
     */
    private String remark;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public BigDecimal getOpmoney() {
        return opmoney;
    }

    public void setOpmoney(BigDecimal opmoney) {
        this.opmoney = opmoney;
    }

    public BigDecimal getCharge() {
        return charge;
    }

    public void setCharge(BigDecimal charge) {
        this.charge = charge;
    }

    public LocalDateTime getOptime() {
        return optime;
    }

    public void setOptime(LocalDateTime optime) {
        this.optime = optime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "BankOprecord{" +
        "id=" + id +
        ", aid=" + aid +
        ", opmoney=" + opmoney +
        ", charge=" + charge +
        ", optime=" + optime +
        ", remark=" + remark +
        "}";
    }
}
